import React, { Component } from 'react';
import { Marker } from 'react-amap';
import car from '../assets/car.png';

class MyMarker extends Component {
  constructor(props) {
    super(props);
    this.state = {};
  }

  render() {
    return (
      <Marker position={this.props.position} {...this.props}>
        <img src={car} alt="car" style={{ width: 40, height: 40 }} />
      </Marker>
    );
  }
}

export default MyMarker;
